__author__ = 'tyrion'
# ret = '''{"name":"Mongo_Repl1_221_228_81_141","minionId":null, "group":"mongo","network":{"ip":["221.228.81.141","118.191.11.141","120.195.212.141","10.33.6.141"],"dns":null,"gateway":null},"memory":null,"disk":null,"instance":[{"name":"primary-1","type":"primary","createTime":null,"status":null}],"remark":null,"cpucore":null}'''
# import json

# t=json.loads(ret)
# print t

import  requests


import urllib
import urllib2
import json

def unitTest():

    data = [{"type" :"Tomcat",  "hostname": "myhostname", "ip":"172.24.133.41"}]
    para = json.dumps(data)

    print(para)
    return


if __name__ == "__main__":
    unitTest()
